package com.direct.listener;

import com.direct.util.Constant;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = Constant.QUEUE_01)
public class Receiver {

    @RabbitHandler
    public void process(String hello){
        System.out.println("Reciver: " + hello);
    }
}
